<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置颜色和背景</title>
    <style>
        #box1 {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            height: 400px;
            background-color: #d4f1cd;
            border: 5px red solid;
            background-image: url(image/蓝星.png);
            background-position: 0 0;
            background-repeat: no-repeat;
            overflow: hidden;
            position: relative;
        }
        
        #box2 {
            position: absolute;
            height: 70px;
            width: 70px;
            background-image: url(image/蓝星.png);
            background-position: 100% 0%;
            background-repeat: no-repeat;
            align-self: flex-end;
            bottom: 0;
            background-size: cover;
        }

        #box3 {
            align-self: flex-start;
            position: absolute;
            height: 70px;
            width: 70px;
            background-image: url(image/蓝星.png);
            background-position: 100% 100%;
            background-repeat: no-repeat;
            background-size: cover;
            
        }
        
        #box4 {
            align-self: flex-end;
            top: 0px;
            height: 70px;
            width: 70px;
            position: absolute;
            background-image: url(image/蓝星.png);
            background-position: 0 100%;
            background-repeat: no-repeat;
            background-size: cover;
            
            
        }
        
        #box5 {
            position: absolute;
            height: 400px;
            width: 400px;
            background-image: url(image/紫星.png);
            background-repeat: no-repeat;
            background-position: 50% 50%;
            right: 500px;
            
        }
        
        p {
            line-height: 250px;
            text-align: center;
        }
    </style>
</head>

<body>
    <div id="box1">
        <div id="box2">
        </div>
        <div id="box3">
        </div>
        <div id="box4">
        </div>
        <div id="box5">
            <p>我是一个兵，爱护老百姓.</p>
        </div>
    </div>
</body>

</html>